<!DOCTYPE html>
<!-- 
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.1.1
Version: 2.0.2
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<!--<![endif]-->
<!-- BEGIN HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
<!-- BEGIN CONTAINER -->
	<!-- BEGIN CONTENT -->
			<div>
					
			</div>
		<!--表格操作按钮组-->
			<table class="table table-striped table-bordered table-hover" id="table_1">
			<thead>
				<tr>
					<th>用户名称</th>
					<th>所属运营商</th>
					<th>透支金额</th>
					<th>超过透支金额是否允许使用</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr class="odd gradeX" ng-repeat="enterpriseUser in enterpriseUserList  track by $index" on-loaded="{{$last}}" target-table="table_1">
					<td>
						<span ng-bind="enterpriseUser.name"></span>
					</td>
					<td>
						<span ng-bind="enterpriseUser.merchantCode | getValueInArgFilter : merchantMap : 'name'"></span>
					</td>
					<td>
						<span ng-bind="enterpriseUser.quota"></span>
					</td>
					<td>
						<span ng-bind="enterpriseUser.allowOverQuota | getValueInStaticFilter : 'allowOverQuotaArray'"></span>
					</td>
					<td>
						<a class="btn" href="javascript:;"  data-target="#enterpriseUserModel" 
						data-toggle="modal" ng-click="updateEnterpriseUser(enterpriseUser);">
							修改
						</a>
					</td>
				</tr>
			</tbody>
			</table>
		
		<div id="enterpriseUserModel" class="modal fade" role="dialog" aria-hidden="true" data-backdrop="false">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h4 class="modal-title">企业用户透支维护</h4>
					</div>
					<div class="modal-body form">
						<div class="form-group">
							<div class="row">
								<label class="col-sm-4 control-label text-right">透支金额</label>
								<div class="col-sm-8">
									<div class="input-group">
										<input type="text"  class="form-control" ng-model="selectedEnterpriseUser.quota"/>
									</div>
								</div>
							</div>
							<div class="row">
								<label class="col-sm-4 control-label text-right">超过透支金额是否允许使用</label>
								<div class="col-md-8">
									<div class="radio-list">
										<label class="radio-inline">
											<input ng-model="selectedEnterpriseUser.allowOverQuota" type="radio"  value="1" 
											ng-selected="selectedEnterpriseUser.allowOverQuota==1">
												允许
										</label>
										<label class="radio-inline">
											<input ng-model="selectedEnterpriseUser.allowOverQuota" type="radio"  value="0" 
											ng-selected="selectedEnterpriseUser.allowOverQuota==0">
												不允许
										</label>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-times"></i>关闭</button>
						<button type="button" class="btn btn-primary" ng-click="modifyEnterpriseUser();"><i class="fa fa-check"></i>保存</button>
					</div>
				</div>
			</div>
		</div>
</div>
	<!-- END CONTENT -->

<!-- END CONTAINER -->

<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->



</body>
<!-- END BODY -->
</html>
<script src="manageView/assets/scripts/public.js" type="text/javascript"></script>
<script>

// setTimeout(function(){
// 	var tablesOption = datatableOption;
// var table1 = $('#table_1');
// var tb1 = table1.DataTable(tablesOption);
// }, 3000);

</script>